package cn.steel.service;

import cn.steel.domain.entity.Message;

import java.util.List;

public interface MessageService {
    // 发送消息
    void sendMessage(Long senderId, Long receiverId, String content);
    // 获取消息
    List<Message> getMessagesBetweenUsers(Long senderId, Long receiverId);
    // 标记消息为已读
    void markMessagesAsRead(Long senderId, Long receiverId);
    // 获取未读消息数量
    long getUnreadMessageCount(Long receiverId);

}